@extends('Admin.layout.layout')
@section('content')
     <div class="middle-box text-center animated fadeInDown">
        <h1>404</h1>
        <h3 class="font-bold">页面未找到！</h3>

        <div class="error-desc">
            抱歉，页面好像去火星了~
            <form class="form-inline m-t" role="form">
                <span class="font flr">提示：您访问的该网页已删除或不存在，系统将 <span class="time" id="timer">5</span> 秒后返回首页！</span>
                <div class="linkbox">
                    <a class="home btn btn-primary" href="{{asset('/foradmin')}}">返回首页</a>
                    <a class="return btn btn-primary" href="javascript:history.go(-1);">返回上一页</a>
                </div>
            </form>
        </div>
    </div>
<script>
    $(function(){
        var timer = null;
        timer = setInterval(updateTime, 1000);
        function updateTime ()
        {
            var second = $("#timer").html();
            if(second <= 1)
            {
                clearInterval(timer);
                window.location.href = $('.home').attr('href');
                return
            }
            second--;
            $("#timer").html(second);
        }
    })
</script>
@endsection
